#define _CRT_SECURE_NO_WARNINGS 1
#include<vector>
#include<iostream>
using namespace std;
class Solution {
public:
    vector<int> findIndices(vector<int>& nums, int indexDifference, int valueDifference)
    {
        vector<int> ans;
        int len = nums.size();
        int cur = 0;
        for (int i = 0; i < len - indexDifference; i++)
        {
            for (int j = indexDifference + i; j < len; j++)
            {
                if (abs(nums[i] - nums[j]) >= valueDifference)
                {
                    return { i, j };
                }
            }
        }
        return { -1,-1 };
    }
};